package com.glorysoft.xztpda.entity;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.databinding.Observable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: LotInfoEntity
 * Author: XJH
 * Date: 2020/5/26 14:19
 * Description: lot信息
 * History:
 */
public class LotInfoEntity implements Serializable {

    private LotBean LOT;

    private String LotID;//jjw lotid  默认无值

    private String DefectQty;//jjw 不良统计  默认无值

    private String RELLMARKING;//jjw 不良统计  默认无值

    private PartBean PART;

    private double PACKAGETYPEQTY;

    private String EQPID;

    private String PRODUCTMODEL;

    private List<String> DURABLELIST;

    private List<LotBean> LOTLIST;

    private List<LotBean> FTCANMERGELOTLIST; //FT尾批信息

    private String CHIPNAME;

    private String WIRESPEC;

    private String WIRINGNO;

    private String PACKAGETYPE;

    private String FACTORY;

    private String SEALNO;

    private String CHIPID;

    private String LINEID;

    private String ASSORDER;

    private String SHOWMSG;

    private String IsSampled;

    private String NUM;

    private String TRACKINWIZARD;//进站向导

    private String TRACKOUTWIZARD;//出站向导

    private String WELDINGWIRECS;//焊线CS文件

    private String TESTCS;//测试CS文件

    private String PRINTINGCS;//印字CS文件

    private String PACKAGECS;//包装CS文件

    private List<ScrapEntity> SCRAPCODELIST;//报废代码列表

    private List<Material> WORKORDERBOMLINELIST;//物料列表
    private List<Material> LOTASSEMBLYLIST;//物料列表

    private String FRAMENUM;//客户订单号
    private String RESERVED7;//客户订单号
    private String PARTDESC;//客户订单号
    private String RELLMARKINGDATE;//客户订单号
    private String PACKAGEBASE;//客户订单号
    private String BINNAME;//客户订单号
    private String MODID;//客户订单号
    private String YZZALL;//印字

    public String getYZZALL() {
        return YZZALL == null ? "" : YZZALL;
    }

    public void setYZZALL(String YZZALL) {
        this.YZZALL = YZZALL;
    }

    public String getPARTDESC() {
        return PARTDESC == null ? "" : PARTDESC;
    }

    public void setPARTDESC(String PARTDESC) {
        this.PARTDESC = PARTDESC;
    }

    public String getRELLMARKINGDATE() {
        return RELLMARKINGDATE == null ? "" : RELLMARKINGDATE;
    }

    public void setRELLMARKINGDATE(String RELLMARKINGDATE) {
        this.RELLMARKINGDATE = RELLMARKINGDATE;
    }

    public String getPACKAGEBASE() {
        return PACKAGEBASE == null ? "" : PACKAGEBASE;
    }

    public void setPACKAGEBASE(String PACKAGEBASE) {
        this.PACKAGEBASE = PACKAGEBASE;
    }

    public String getBINNAME() {
        return BINNAME == null ? "" : BINNAME;
    }

    public void setBINNAME(String BINNAME) {
        this.BINNAME = BINNAME;
    }

    public String getMODID() {
        return MODID == null ? "" : MODID;
    }

    public void setMODID(String MODID) {
        this.MODID = MODID;
    }

    public String getRESERVED7() {
        return RESERVED7 == null ? "" : RESERVED7;
    }

    public void setRESERVED7(String RESERVED7) {
        this.RESERVED7 = RESERVED7;
    }

    public String getFRAMENUM() {
        return FRAMENUM == null ? "" : FRAMENUM;
    }

    public void setFRAMENUM(String FRAMENUM) {
        this.FRAMENUM = FRAMENUM;
    }

    public String getRELLMARKING() {
        return RELLMARKING == null ? "" : RELLMARKING;
    }

    public void setRELLMARKING(String RELLMARKING) {
        this.RELLMARKING = RELLMARKING;
    }

    public List<Material> getLOTASSEMBLYLIST() {
        if (LOTASSEMBLYLIST == null) {
            return new ArrayList<>();
        }
        return LOTASSEMBLYLIST;
    }

    public void setLOTASSEMBLYLIST(List<Material> LOTASSEMBLYLIST) {
        this.LOTASSEMBLYLIST = LOTASSEMBLYLIST;
    }

    public List<Material> getWORKORDERBOMLINELIST() {
        if (WORKORDERBOMLINELIST == null) {
            return new ArrayList<>();
        }
        return WORKORDERBOMLINELIST;
    }

    public void setWORKORDERBOMLINELIST(List<Material> WORKORDERBOMLINELIST) {
        this.WORKORDERBOMLINELIST = WORKORDERBOMLINELIST;
    }

    public String getWELDINGWIRECS() {
        return WELDINGWIRECS == null ? "" : WELDINGWIRECS;
    }

    public void setWELDINGWIRECS(String WELDINGWIRECS) {
        this.WELDINGWIRECS = WELDINGWIRECS;
    }

    public String getTESTCS() {
        return TESTCS == null ? "" : TESTCS;
    }

    public void setTESTCS(String TESTCS) {
        this.TESTCS = TESTCS;
    }

    public String getPRINTINGCS() {
        return PRINTINGCS == null ? "" : PRINTINGCS;
    }

    public void setPRINTINGCS(String PRINTINGCS) {
        this.PRINTINGCS = PRINTINGCS;
    }

    public String getPACKAGECS() {
        return PACKAGECS == null ? "" : PACKAGECS;
    }

    public void setPACKAGECS(String PACKAGECS) {
        this.PACKAGECS = PACKAGECS;
    }

    public List<LotBean> getFTCANMERGELOTLIST() {
        if (FTCANMERGELOTLIST == null) {
            return new ArrayList<>();
        }
        return FTCANMERGELOTLIST;
    }

    public void setFTCANMERGELOTLIST(List<LotBean> FTCANMERGELOTLIST) {
        this.FTCANMERGELOTLIST = FTCANMERGELOTLIST;
    }

    public String getDefectQty() {
        return DefectQty == null ? "0" : DefectQty;
    }

    public void setDefectQty(String defectQty) {
        DefectQty = defectQty;
    }

    public String getLotID() {
        return LotID == null ? "" : LotID;
    }

    public void setLotID(String lotID) {
        LotID = lotID;
    }

    public List<ScrapEntity> getSCRAPCODELIST() {
        if (SCRAPCODELIST == null) {
            return new ArrayList<>();
        }
        return SCRAPCODELIST;
    }

    public void setSCRAPCODELIST(List<ScrapEntity> SCRAPCODELIST) {
        this.SCRAPCODELIST = SCRAPCODELIST;
    }

    public PartBean getPART() {
        return PART;
    }

    public void setPART(PartBean PART) {
        this.PART = PART;
    }

    public String getEQPID() {
        return EQPID == null ? "" : EQPID;
    }

    public void setEQPID(String EQPID) {
        this.EQPID = EQPID;
    }

    public String getTRACKOUTWIZARD() {
        return TRACKOUTWIZARD == null ? "" : TRACKOUTWIZARD;
    }

    public void setTRACKOUTWIZARD(String TRACKOUTWIZARD) {
        this.TRACKOUTWIZARD = TRACKOUTWIZARD;
    }

    public String getTRACKINWIZARD() {
        return TRACKINWIZARD == null ? "" : TRACKINWIZARD;
    }

    public void setTRACKINWIZARD(String TRACKINWIZARD) {
        this.TRACKINWIZARD = TRACKINWIZARD;
    }

    public String getIsSampled() {
        return IsSampled == null ? "" : IsSampled;
    }

    public void setIsSampled(String isSampled) {
        IsSampled = isSampled;
    }

    public String getNUM() {
        return NUM == null ? "" : NUM;
    }

    public void setNUM(String NUM) {
        this.NUM = NUM;
    }

    public String getSHOWMSG() {
        return SHOWMSG == null ? "" : SHOWMSG;
    }

    public void setSHOWMSG(String SHOWMSG) {
        this.SHOWMSG = SHOWMSG;
    }

    public String getASSORDER() {
        return ASSORDER == null ? "" : ASSORDER;
    }

    public void setASSORDER(String ASSORDER) {
        this.ASSORDER = ASSORDER;
    }

    public List<LotBean> getLOTLIST() {
        if (LOTLIST == null) {
            return new ArrayList<>();
        }
        return LOTLIST;
    }

    public void setLOTLIST(List<LotBean> LOTLIST) {
        this.LOTLIST = LOTLIST;
    }

    public String getLINEID() {
        return LINEID == null ? "" : LINEID;
    }

    public void setLINEID(String LINEID) {
        this.LINEID = LINEID;
    }

    public String getCHIPID() {
        return CHIPID == null ? "" : CHIPID;
    }

    public void setCHIPID(String CHIPID) {
        this.CHIPID = CHIPID;
    }

    public String getSEALNO() {
        return SEALNO == null ? "" : SEALNO;
    }

    public void setSEALNO(String SEALNO) {
        this.SEALNO = SEALNO;
    }

    public String getFACTORY() {
        return FACTORY == null ? "" : FACTORY;
    }

    public void setFACTORY(String FACTORY) {
        this.FACTORY = FACTORY;
    }

    public String getPACKAGETYPE() {
        return PACKAGETYPE == null ? "" : PACKAGETYPE;
    }

    public void setPACKAGETYPE(String PACKAGETYPE) {
        this.PACKAGETYPE = PACKAGETYPE;
    }

    public String getWIRINGNO() {
        return WIRINGNO == null ? "" : WIRINGNO;
    }

    public void setWIRINGNO(String WIRINGNO) {
        this.WIRINGNO = WIRINGNO;
    }

    public String getCHIPNAME() {
        return CHIPNAME == null ? "" : CHIPNAME;
    }

    public void setCHIPNAME(String CHIPNAME) {
        this.CHIPNAME = CHIPNAME;
    }

    public String getWIRESPEC() {
        return WIRESPEC == null ? "" : WIRESPEC;
    }

    public void setWIRESPEC(String WIRESPEC) {
        this.WIRESPEC = WIRESPEC;
    }

    public List<String> getDURABLELIST() {
        if (DURABLELIST == null) {
            return new ArrayList<>();
        }
        return DURABLELIST;
    }

    public void setDURABLELIST(List<String> DURABLELIST) {
        this.DURABLELIST = DURABLELIST;
    }

    public String getPRODUCTMODEL() {
        return PRODUCTMODEL == null ? "" : PRODUCTMODEL;
    }

    public void setPRODUCTMODEL(String PRODUCTMODEL) {
        this.PRODUCTMODEL = PRODUCTMODEL;
    }

    public int getPACKAGETYPEQTY() {
        return new Double(PACKAGETYPEQTY).intValue();
    }

    public void setPACKAGETYPEQTY(double PACKAGETYPEQTY) {
        this.PACKAGETYPEQTY = PACKAGETYPEQTY;
    }

    public LotBean getLOT() {
        return LOT == null ? new LotBean() : LOT;
    }

    public void setLOT(LotBean LOT) {
        this.LOT = LOT;
    }

    public class LotBean implements Serializable {

        private long OBJECTRRN;//批次主键

        private String CurrentEqp;//jjw 设备

        private String LOCATORID;

        private String MAINMATTYPE;

        private long ORGRRN;//区域号

        private String LOTID;//批次号

        private String SUBSTRATEID1;

        private String LOTTYPE;//批次类型

        private String PARTNAME;//产品名称

        private int PARTVERSION;//产品版本

        private String PARTDESC;//产品描述

        private String CUSTOMERCODE;//客户代码

        private int MAINQTY;//主数量

        private String OutQTY;//主数量

        private String ScrapQty;//报废数量

        private String PROCESSNAME;//工艺名称

        private int PROCESSVERSION;//工艺版本

        private String PROCEDURENAME;//流程名称

        private String PROCEDUREVERSION;//流程版本

        private String STEPNAME;//工步名称

        private String STEPVERSION;//工步版本

        private String STEPDESC;//工步描述

        private String COMCLASS;//状态大类

        private String STATE;//状态

        private String UPDATED;//更新时间

        private String UPDATEDBY;//更新人

        private String HOLDSTATE;//hold状态

        private int PRIORITY;//优先级

        private String WOID;//工单号

        private int REWORKCOUNT;//返工次数

        private String USECOUNT;

        private String OPERATOR1;//操作人

        private String CREATED;//创建时间

        private String ISSUBLOT;

        private String TRACKINTIME;//进站时间

        private String TRACKOUTTIME;//出站时间

        private String LASTEQUIPMENTID;

        private String LOTCOMMENT;//批次备注

        private String SUBUNITTYPE;

        private String EQUIPMENTID;

        private String CUSTOMERORDER;//客户订单号

        private UDFEntity UDF;

        private List<ComponentlistBean> COMPONENTLIST;

        public long getOBJECTRRN() {
            return OBJECTRRN;
        }

        public void setOBJECTRRN(long OBJECTRRN) {
            this.OBJECTRRN = OBJECTRRN;
        }

        public long getORGRRN() {
            return ORGRRN;
        }

        public void setORGRRN(long ORGRRN) {
            this.ORGRRN = ORGRRN;
        }

        public int getPARTVERSION() {
            return PARTVERSION;
        }

        public void setPARTVERSION(int PARTVERSION) {
            this.PARTVERSION = PARTVERSION;
        }

        public int getMAINQTY() {
            return MAINQTY;
        }

        public void setMAINQTY(int MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        public int getPROCESSVERSION() {
            return PROCESSVERSION;
        }

        public void setPROCESSVERSION(int PROCESSVERSION) {
            this.PROCESSVERSION = PROCESSVERSION;
        }

        public int getPRIORITY() {
            return PRIORITY;
        }

        public void setPRIORITY(int PRIORITY) {
            this.PRIORITY = PRIORITY;
        }

        public int getREWORKCOUNT() {
            return REWORKCOUNT;
        }

        public void setREWORKCOUNT(int REWORKCOUNT) {
            this.REWORKCOUNT = REWORKCOUNT;
        }

        public String getOutQTY() {
            return OutQTY == null ? String.valueOf(getMAINQTY()) : OutQTY;
        }

        public void setOutQTY(String outQTY) {
            OutQTY = outQTY;
        }

        public List<ComponentlistBean> getCOMPONENTLIST() {
            return COMPONENTLIST;
        }

        public void setCOMPONENTLIST(List<ComponentlistBean> COMPONENTLIST) {
            this.COMPONENTLIST = COMPONENTLIST;
        }

        public String getCurrentEqp() {
            return CurrentEqp == null ? "" : CurrentEqp;
        }

        public void setCurrentEqp(String currentEqp) {
            CurrentEqp = currentEqp;
        }

        public String getScrapQty() {
            return ScrapQty == null ? "0" : ScrapQty;
        }

        public void setScrapQty(String scrapQty) {
            ScrapQty = scrapQty;
        }

        public String getLOCATORID() {
            return LOCATORID == null ? "" : LOCATORID;
        }

        public void setLOCATORID(String LOCATORID) {
            this.LOCATORID = LOCATORID;
        }

        public UDFEntity getUDF() {
            return UDF;
        }

        public void setUDF(UDFEntity UDF) {
            this.UDF = UDF;
        }

        public String getMAINMATTYPE() {
            return MAINMATTYPE == null ? "" : MAINMATTYPE;
        }

        public void setMAINMATTYPE(String MAINMATTYPE) {
            this.MAINMATTYPE = MAINMATTYPE;
        }

        public String getCUSTOMERORDER() {
            return CUSTOMERORDER == null ? "" : CUSTOMERORDER;
        }

        public void setCUSTOMERORDER(String CUSTOMERORDER) {
            this.CUSTOMERORDER = CUSTOMERORDER;
        }

        public String getEQUIPMENTID() {
            return EQUIPMENTID == null ? "" : EQUIPMENTID;
        }

        public void setEQUIPMENTID(String EQUIPMENTID) {
            this.EQUIPMENTID = EQUIPMENTID;
        }

        public String getLOTID() {
            return LOTID == null ? "" : LOTID;
        }

        public void setLOTID(String LOTID) {
            this.LOTID = LOTID;
        }

        public String getSUBSTRATEID1() {
            return SUBSTRATEID1 == null ? "" : SUBSTRATEID1;
        }

        public void setSUBSTRATEID1(String SUBSTRATEID1) {
            this.SUBSTRATEID1 = SUBSTRATEID1;
        }

        public String getLOTTYPE() {
            return LOTTYPE == null ? "" : LOTTYPE;
        }

        public void setLOTTYPE(String LOTTYPE) {
            this.LOTTYPE = LOTTYPE;
        }

        public String getPARTNAME() {
            return PARTNAME == null ? "" : PARTNAME;
        }

        public void setPARTNAME(String PARTNAME) {
            this.PARTNAME = PARTNAME;
        }

        public String getPARTDESC() {
            return PARTDESC == null ? "" : PARTDESC;
        }

        public void setPARTDESC(String PARTDESC) {
            this.PARTDESC = PARTDESC;
        }

        public String getCUSTOMERCODE() {
            return CUSTOMERCODE == null ? "" : CUSTOMERCODE;
        }

        public void setCUSTOMERCODE(String CUSTOMERCODE) {
            this.CUSTOMERCODE = CUSTOMERCODE;
        }


        public String getPROCESSNAME() {
            return PROCESSNAME == null ? "" : PROCESSNAME;
        }

        public void setPROCESSNAME(String PROCESSNAME) {
            this.PROCESSNAME = PROCESSNAME;
        }


        public String getPROCEDURENAME() {
            return PROCEDURENAME == null ? "" : PROCEDURENAME;
        }

        public void setPROCEDURENAME(String PROCEDURENAME) {
            this.PROCEDURENAME = PROCEDURENAME;
        }

        public String getPROCEDUREVERSION() {
            return PROCEDUREVERSION == null ? "" : PROCEDUREVERSION;
        }

        public void setPROCEDUREVERSION(String PROCEDUREVERSION) {
            this.PROCEDUREVERSION = PROCEDUREVERSION;
        }

        public String getSTEPNAME() {
            return STEPNAME == null ? "" : STEPNAME;
        }

        public void setSTEPNAME(String STEPNAME) {
            this.STEPNAME = STEPNAME;
        }

        public String getSTEPVERSION() {
            return STEPVERSION == null ? "" : STEPVERSION;
        }

        public void setSTEPVERSION(String STEPVERSION) {
            this.STEPVERSION = STEPVERSION;
        }

        public String getSTEPDESC() {
            return STEPDESC == null ? "" : STEPDESC;
        }

        public void setSTEPDESC(String STEPDESC) {
            this.STEPDESC = STEPDESC;
        }

        public String getCOMCLASS() {
            return COMCLASS == null ? "" : COMCLASS;
        }

        public void setCOMCLASS(String COMCLASS) {
            this.COMCLASS = COMCLASS;
        }

        public String getSTATE() {
            if (STATE == null || STATE.equals("")) {
                return "";
            }
            String state = "";
            switch (STATE) {
                case "WAIT":
                    state = "等待作业";
                    break;
                case "RUN":
                    state = "正在作业";
                    break;
                case "FIN":
                    state = "结束作业";
                    break;
                case "SHIP":
                    state = "已经入库";
                    break;
                case "TERM":
                    state = "终止批次";
                    break;
                case "MERGE":
                    state = "被合批";
                    break;
                case "SCHD":
                    state = "待投产";
                    break;
                default:
                    state = STATE;
            }
            return state;
        }

        public void setSTATE(String STATE) {
            this.STATE = STATE;
        }

        public String getUPDATED() {
            return UPDATED == null ? "" : UPDATED;
        }

        public void setUPDATED(String UPDATED) {
            this.UPDATED = UPDATED;
        }

        public String getUPDATEDBY() {
            return UPDATEDBY == null ? "" : UPDATEDBY;
        }

        public void setUPDATEDBY(String UPDATEDBY) {
            this.UPDATEDBY = UPDATEDBY;
        }

        public String getHOLDSTATE() {
            if (HOLDSTATE.equals("On")){
                return "暂停中";
            }
            return HOLDSTATE == null ? "" : HOLDSTATE;
        }

        public void setHOLDSTATE(String HOLDSTATE) {
            this.HOLDSTATE = HOLDSTATE;
        }


        public String getWOID() {
            return WOID == null ? "" : WOID;
        }

        public void setWOID(String WOID) {
            this.WOID = WOID;
        }


        public String getUSECOUNT() {
            return USECOUNT == null ? "" : USECOUNT;
        }

        public void setUSECOUNT(String USECOUNT) {
            this.USECOUNT = USECOUNT;
        }

        public String getOPERATOR1() {
            return OPERATOR1 == null ? "" : OPERATOR1;
        }

        public void setOPERATOR1(String OPERATOR1) {
            this.OPERATOR1 = OPERATOR1;
        }

        public String getCREATED() {
            return CREATED == null ? "" : CREATED;
        }

        public void setCREATED(String CREATED) {
            this.CREATED = CREATED;
        }

        public String getISSUBLOT() {
            return ISSUBLOT == null ? "" : ISSUBLOT;
        }

        public void setISSUBLOT(String ISSUBLOT) {
            this.ISSUBLOT = ISSUBLOT;
        }

        public String getTRACKINTIME() {
            return TRACKINTIME == null ? "" : TRACKINTIME;
        }

        public void setTRACKINTIME(String TRACKINTIME) {
            this.TRACKINTIME = TRACKINTIME;
        }

        public String getTRACKOUTTIME() {
            return TRACKOUTTIME == null ? "" : TRACKOUTTIME;
        }

        public void setTRACKOUTTIME(String TRACKOUTTIME) {
            this.TRACKOUTTIME = TRACKOUTTIME;
        }

        public String getLASTEQUIPMENTID() {
            return LASTEQUIPMENTID == null ? "" : LASTEQUIPMENTID;
        }

        public void setLASTEQUIPMENTID(String LASTEQUIPMENTID) {
            this.LASTEQUIPMENTID = LASTEQUIPMENTID;
        }

        public String getLOTCOMMENT() {
            return LOTCOMMENT == null ? "" : LOTCOMMENT;
        }

        public void setLOTCOMMENT(String LOTCOMMENT) {
            this.LOTCOMMENT = LOTCOMMENT;
        }

        public String getSUBUNITTYPE() {
            return SUBUNITTYPE == null ? "" : SUBUNITTYPE;
        }

        public void setSUBUNITTYPE(String SUBUNITTYPE) {
            this.SUBUNITTYPE = SUBUNITTYPE;
        }

    }

    public static class UDFEntity implements Serializable {
        private String ASSEMBLEBATCH;

        private String APSPLANTESTEQP;

        private String RESERVEDMERGEMAINLOT;

        private String moActionCode;

        private String modid;

        public String getMODID() {
            return modid == null ? "" : modid;
        }

        public void setMODID(String MODID) {
            this.modid = MODID;
        }

        public String getMOACTIONCODE() {
            return moActionCode == null ? "" : moActionCode;
        }

        public void setMOACTIONCODE(String MOACTIONCODE) {
            this.moActionCode = MOACTIONCODE;
        }

        public String getRESERVEDMERGEMAINLOT() {
            return RESERVEDMERGEMAINLOT == null ? "0" : RESERVEDMERGEMAINLOT;
        }

        public void setRESERVEDMERGEMAINLOT(String RESERVEDMERGEMAINLOT) {
            this.RESERVEDMERGEMAINLOT = RESERVEDMERGEMAINLOT;
        }

        public String getASSEMBLEBATCH() {
            return ASSEMBLEBATCH == null ? "" : ASSEMBLEBATCH;
        }

        public void setASSEMBLEBATCH(String ASSEMBLEBATCH) {
            this.ASSEMBLEBATCH = ASSEMBLEBATCH;
        }

        public String getAPSPLANTESTEQP() {
            return APSPLANTESTEQP == null ? "" : APSPLANTESTEQP;
        }

        public void setAPSPLANTESTEQP(String APSPLANTESTEQP) {
            this.APSPLANTESTEQP = APSPLANTESTEQP;
        }
    }

    public class PartBean implements Serializable {
        private String SPEC2;//BD图号路径
        private String SPEC4;//MARK路径
        private String RESERVED1;

        public String getRESERVED1() {
            return RESERVED1 == null ? "" : RESERVED1;
        }

        public void setRESERVED1(String RESERVED1) {
            this.RESERVED1 = RESERVED1;
        }

        public String getSPEC4() {
            return SPEC4 == null ? "" : SPEC4;
        }

        public void setSPEC4(String SPEC4) {
            this.SPEC4 = SPEC4;
        }

        public String getSPEC2() {
            return SPEC2 == null ? "" : SPEC2;
        }

        public void setSPEC2(String SPEC2) {
            this.SPEC2 = SPEC2;
        }
    }

    public static class ComponentlistBean implements Serializable {
        private String COMCLASS;
        private String COMPONENTID;
        private String COMPONENTTYPE;
        private String CREATED;
        private String HOLDSTATE;
        private String ISSUBLOT;
        private String MAINQTY;
        private long OBJECTRRN;
        private String OPERATOR1;
        private String ORGRRN;
        private String PARENTUNITRRN;
        private String PARTDESC;
        private String PARTNAME;
        private String PARTVERSION;
        private String PRIORITY;
        private String PROCEDURENAME;
        private String PROCEDUREVERSION;
        private String PROCESSNAME;
        private String PROCESSVERSION;
        private String RECIPENAME;
        private String STATE;
        private String STEPDESC;
        private String STEPNAME;
        private int STEPVERSION;
        private String SUBMATTYPE;
        private String SUBQTY;
        private String TRACKINTIME;
        private String UPDATED;
        private String UPDATEDBY;
        private int USECOUNT;
        private String WOID;

        public String getCOMCLASS() {
            return COMCLASS;
        }

        public String getCOMPONENTID() {
            return COMPONENTID;
        }

        public String getCOMPONENTTYPE() {
            return COMPONENTTYPE;
        }

        public String getCREATED() {
            return CREATED;
        }

        public String getHOLDSTATE() {
            return HOLDSTATE;
        }

        public String getISSUBLOT() {
            return ISSUBLOT;
        }

        public String getMAINQTY() {
            return MAINQTY;
        }

        public String getOPERATOR1() {
            return OPERATOR1;
        }

        public String getORGRRN() {
            return ORGRRN;
        }

        public String getPARENTUNITRRN() {
            return PARENTUNITRRN;
        }

        public String getPARTDESC() {
            return PARTDESC;
        }

        public String getPARTNAME() {
            return PARTNAME;
        }

        public String getPARTVERSION() {
            return PARTVERSION;
        }

        public String getPRIORITY() {
            return PRIORITY;
        }

        public String getPROCEDURENAME() {
            return PROCEDURENAME;
        }

        public String getPROCEDUREVERSION() {
            return PROCEDUREVERSION;
        }

        public String getPROCESSNAME() {
            return PROCESSNAME;
        }

        public String getPROCESSVERSION() {
            return PROCESSVERSION;
        }

        public String getRECIPENAME() {
            return RECIPENAME;
        }

        public String getSTATE() {
            return STATE;
        }

        public String getSTEPDESC() {
            return STEPDESC;
        }

        public String getSTEPNAME() {
            return STEPNAME;
        }


        public String getSUBMATTYPE() {
            return SUBMATTYPE;
        }

        public String getSUBQTY() {
            return SUBQTY;
        }

        public String getTRACKINTIME() {
            return TRACKINTIME;
        }

        public String getUPDATED() {
            return UPDATED;
        }

        public String getUPDATEDBY() {
            return UPDATEDBY;
        }

        public String getWOID() {
            return WOID;
        }

        public void setCOMCLASS(String COMCLASS) {
            this.COMCLASS = COMCLASS;
        }

        public void setCOMPONENTID(String COMPONENTID) {
            this.COMPONENTID = COMPONENTID;
        }

        public void setCOMPONENTTYPE(String COMPONENTTYPE) {
            this.COMPONENTTYPE = COMPONENTTYPE;
        }

        public void setCREATED(String CREATED) {
            this.CREATED = CREATED;
        }

        public void setHOLDSTATE(String HOLDSTATE) {
            this.HOLDSTATE = HOLDSTATE;
        }

        public void setISSUBLOT(String ISSUBLOT) {
            this.ISSUBLOT = ISSUBLOT;
        }

        public void setMAINQTY(String MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        public void setOPERATOR1(String OPERATOR1) {
            this.OPERATOR1 = OPERATOR1;
        }

        public void setORGRRN(String ORGRRN) {
            this.ORGRRN = ORGRRN;
        }

        public void setPARENTUNITRRN(String PARENTUNITRRN) {
            this.PARENTUNITRRN = PARENTUNITRRN;
        }

        public void setPARTDESC(String PARTDESC) {
            this.PARTDESC = PARTDESC;
        }

        public void setPARTNAME(String PARTNAME) {
            this.PARTNAME = PARTNAME;
        }

        public void setPARTVERSION(String PARTVERSION) {
            this.PARTVERSION = PARTVERSION;
        }

        public void setPRIORITY(String PRIORITY) {
            this.PRIORITY = PRIORITY;
        }

        public void setPROCEDURENAME(String PROCEDURENAME) {
            this.PROCEDURENAME = PROCEDURENAME;
        }

        public void setPROCEDUREVERSION(String PROCEDUREVERSION) {
            this.PROCEDUREVERSION = PROCEDUREVERSION;
        }

        public void setPROCESSNAME(String PROCESSNAME) {
            this.PROCESSNAME = PROCESSNAME;
        }

        public void setPROCESSVERSION(String PROCESSVERSION) {
            this.PROCESSVERSION = PROCESSVERSION;
        }

        public void setRECIPENAME(String RECIPENAME) {
            this.RECIPENAME = RECIPENAME;
        }

        public void setSTATE(String STATE) {
            this.STATE = STATE;
        }

        public void setSTEPDESC(String STEPDESC) {
            this.STEPDESC = STEPDESC;
        }

        public void setSTEPNAME(String STEPNAME) {
            this.STEPNAME = STEPNAME;
        }

        public void setSUBMATTYPE(String SUBMATTYPE) {
            this.SUBMATTYPE = SUBMATTYPE;
        }

        public void setSUBQTY(String SUBQTY) {
            this.SUBQTY = SUBQTY;
        }

        public void setTRACKINTIME(String TRACKINTIME) {
            this.TRACKINTIME = TRACKINTIME;
        }

        public void setUPDATED(String UPDATED) {
            this.UPDATED = UPDATED;
        }

        public void setUPDATEDBY(String UPDATEDBY) {
            this.UPDATEDBY = UPDATEDBY;
        }

        public void setWOID(String WOID) {
            this.WOID = WOID;
        }
    }

    public static class  Material extends BaseObservable implements Serializable{
        private String MATERIALNAME;
        private String MATERIALDESC;
        private String MATERIALTYPE;
        private double UNITQTY;
        private String STEPNAME;
        private String MLOTID;
        private String RESERVED02;
        private double RESERVED01;
        private double CONSUMEMAINQTY;
        private boolean showAdd;
        private String RESERVED03;

        @Bindable
        public String getRESERVED03() {
            return RESERVED03 == null ? "" : RESERVED03;
        }

        public void setRESERVED03(String MLOTID) {
            this.RESERVED03 = MLOTID;
            notifyChange();
        }

        public String getRESERVED02() {
            return RESERVED02 == null ? "" : RESERVED02;
        }

        public void setRESERVED02(String RESERVED02) {
            this.RESERVED02 = RESERVED02;
        }

        public double getRESERVED01() {
            return RESERVED01;
        }

        public void setRESERVED01(double RESERVED01) {
            this.RESERVED01 = RESERVED01;
        }

        public boolean isShowAdd() {
            return showAdd;
        }

        public void setShowAdd(boolean showAdd) {
            this.showAdd = showAdd;
        }

        public double getCONSUMEMAINQTY() {
            return CONSUMEMAINQTY;
        }

        public void setCONSUMEMAINQTY(double CONSUMEMAINQTY) {
            this.CONSUMEMAINQTY = CONSUMEMAINQTY;
        }

        @Bindable
        public String getMLOTID() {
            return MLOTID == null ? "" : MLOTID;
        }

        public void setMLOTID(String MLOTID) {
            this.MLOTID = MLOTID;
            notifyChange();
        }

        public String getMATERIALNAME() {
            return MATERIALNAME == null ? "" : MATERIALNAME;
        }

        public void setMATERIALNAME(String MATERIALNAME) {
            this.MATERIALNAME = MATERIALNAME;
        }

        public String getMATERIALDESC() {
            return MATERIALDESC == null ? "" : MATERIALDESC;
        }

        public void setMATERIALDESC(String MATERIALDESC) {
            this.MATERIALDESC = MATERIALDESC;
        }

        public String getMATERIAL_TYPE() {
            return MATERIALTYPE == null ? "" : MATERIALTYPE;
        }

        public void setMATERIAL_TYPE(String MATERIAL_TYPE) {
            this.MATERIALTYPE = MATERIAL_TYPE;
        }

        public double getUNITQTY() {
            return UNITQTY;
        }

        public void setUNITQTY(double UNITQTY) {
            this.UNITQTY = UNITQTY;
        }

        public String getSTEPNAME() {
            return STEPNAME == null ? "" : STEPNAME;
        }

        public void setSTEPNAME(String STEPNAME) {
            this.STEPNAME = STEPNAME;
        }
    }
}
